package com.zxf.dao;

import java.util.HashMap;
import java.util.List;

import com.zxf.pojo.Article;
import com.zxf.pojo.Params;

public interface ArticleMapper {
    int deleteByPrimaryKey(Integer articleid);

    int insert(Article record);

    int insertSelective(Article record);

    Article selectByPrimaryKey(Integer articleid);

    int updateByPrimaryKeySelective(Article record);

    int updateByPrimaryKey(Article record);
    //文章列表
	List getArticleList(int start2, int pageSize2);
    //文章总数
	int getartcletotle();
	 //文章列表
	List getArticleList(HashMap paramsmap);
	//带搜索参数的
	List getArticleList(Params params, Article article);

	int getartcletotle(HashMap paramsmap);
	// 修改信息
	int uparticle(Article article);
	// 所有信息
	List getArticleallList();

	void getArticleList(Params pams);

	List getArticleListindex(HashMap paramsmap);

	Article findPrevious(int artid, int typeid);

	Article findNextarticle(int artid, int typeid);

	Article findPrevious(HashMap paramsmap);

	Article findNextarticle(HashMap paramsmap);
}